<html>
<head><meta charset="utf-8"><title>where are diagnostics formatted for the terminal? · t-compiler/wg-diagnostics · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/index.html">t-compiler/wg-diagnostics</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/where.20are.20diagnostics.20formatted.20for.20the.20terminal.3F.html">where are diagnostics formatted for the terminal?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="209575040"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/where%20are%20diagnostics%20formatted%20for%20the%20terminal%3F/near/209575040" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/where.20are.20diagnostics.20formatted.20for.20the.20terminal.3F.html#209575040">(Sep 09 2020 at 22:12)</a>:</h4>
<p>Where are diagnostics formatted for output to a terminal? E.g., where are colors applied? Thanks!</p>



<a name="209602278"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/where%20are%20diagnostics%20formatted%20for%20the%20terminal%3F/near/209602278" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/where.20are.20diagnostics.20formatted.20for.20the.20terminal.3F.html#209602278">(Sep 10 2020 at 07:05)</a>:</h4>
<p>Colors are applied in <a href="https://github.com/rust-lang/rust/blob/master/compiler/rustc_errors/src/styled_buffer.rs">https://github.com/rust-lang/rust/blob/master/compiler/rustc_errors/src/styled_buffer.rs</a></p>



<a name="209602287"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/where%20are%20diagnostics%20formatted%20for%20the%20terminal%3F/near/209602287" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> oli <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/where.20are.20diagnostics.20formatted.20for.20the.20terminal.3F.html#209602287">(Sep 10 2020 at 07:05)</a>:</h4>
<p>everything else is spread through that crate</p>



<a name="209718932"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/147480-t-compiler/wg-diagnostics/topic/where%20are%20diagnostics%20formatted%20for%20the%20terminal%3F/near/209718932" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Noah Lev <a href="https://rust-lang.github.io/zulip_archive/stream/147480-t-compiler/wg-diagnostics/topic/where.20are.20diagnostics.20formatted.20for.20the.20terminal.3F.html#209718932">(Sep 10 2020 at 22:46)</a>:</h4>
<p>Thanks!</p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>